/////////////////////////////////////////////////////////////////
//File: _HeaderPublic.aspx
//Description: 
//  公用Header，本页是个生成html碎片的完整aspx页面，请使用Server.Execute("url")调用。
//  
//Copyright© 2011 Moliu
//History:
//  2011-2-23 23:28:31    CodeSmith5.0.1    Original Version
/////////////////////////////////////////////////////////////////

using System;
using System.Threading;
using System.Collections.Generic;
using System.IO;
using MAF.Common;
using My.Blog.Domain.Entities;
using My.Blog.Domain.Interfaces;
using My.Blog.Business.Service;
using My.Blog.Business.Security;
using My.Blog.Web.Controllers;
using System.Web;
using System.Configuration;
using System.Collections.Specialized;


namespace My.Blog.Web.UI
{
    public class HeaderPublic : My.Blog.Web.Controllers.BasePage
    {
        public HeaderPublic() 
        {
            HttpContext context = HttpContext.Current;

            //BlogInfo thisInfo = _BlogHandler.ReadBlogByConditions();

            // 模板路径及逻辑标签正则表达式
            string TPL_FILE_PATH = ConfigurationManager.AppSettings["TemplatesPath"] + @"/_HeaderPublic.html";

            // 模板处理对象
            string tpl = File.ReadAllText(context.Server.MapPath(TPL_FILE_PATH));
            context.Response.Write(tpl);
        }
    }
}
